package com.efast.cafe.commponent.statemach.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.cafe.commponent.statemach.bean.StateMachTaskHistory;
import com.efast.cafe.commponent.statemach.bean.StateMachTaskHistoryBean;

public interface PortalStateMachTaskHistoryDao {

	/**
	 * 添加任务历史
	 * 
	 * @param taskHistory
	 */
	void insertTaskHistory(StateMachTaskHistory taskHistory);

	/**
	 * 根据TaskId获取流程历史
	 * 
	 * @param taskId
	 * @return
	 */
	List<StateMachTaskHistory> queryTaskHistoryByTaskId(@Param(value = "taskId") Long taskId);
	
	/**
	 * 根据TaskId获取流程历史显示
	 * @param taskId
	 * @return
	 */
	List<StateMachTaskHistoryBean> queryTaskHistoryBeanByTaskId(@Param(value = "taskId") Long taskId);

}
